<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh-CN" class="ie8"> <![endif]-->
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <title>-登录 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta content="telephone=no,email=no,address=no" name="format-detection" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="wap-font-scale" content="no">
    <meta name="Keywords" content="" />
    <meta name="Description" content="" />

    <!--登录页css-->
    <script src="../common/js/jquery.js"></script>
    <!--整站改色 _start-->
    <link rel="stylesheet" href="../common/css/color-style.css" />
</head>

<body>
    <!--登录页css-->
    <link rel="stylesheet" href="../common/css/common.css" />
    <link rel="stylesheet" href="../css/login.css" />
    <script src="../common/js/layer/layer.js"></script>
    <script src="../common/js/jquery.method.js"></script>
    <script src="../common/js/placeholder.js"></script>
    <script src="../common/js/jquery.supersized.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/login.js"></script>
  

    <div class="login-top" style='background-size: cover'>
        <header id="header" class="header header-color">
            <div class="header-left">
                <a href="javascript:history.back(-1)" class="sb-back"></a>
                <a href="index.html"></a>
            </div>
            <div class="header-middle"></div>
            <div class="header-right">
                
            </div>
        </header>
        <!--<div class="login-img">

			</div>-->
        <div style="height:50px;width: 100%;"></div>
    </div>

    
    <div id="1493541251RTfJ9Z">

        <div class="middle-content m-t-0" id="con_login_2">
            <form id="form2" action="" method="POST">
                <div class="form-group-box">
                    <!-- 用户名 -->
                    <div class="form-group form-group-spe">
                        <dl>
                            <dt>
<span>用户名：</span>
</dt>
                            <dd>
                                <div class="form-control-box">

                                    <input type="text" id="loginmodel-username" class="form-control" name="LoginModel[username]" value="" placeholder="请输入用户名" autocomplete="off">

                                </div>

                            </dd>
                        </dl>
                    </div>
                    <div class="invalid"></div>

                    <!-- 密码 -->
                    <div class="form-group form-group-spe">
                        <dl>
                            <dt>
<span>密码：</span>
</dt>
                            <dd>
                                <div class="form-control-box">

                                    <input type="password" id="loginmodel-password" class="form-control" name="LoginModel[password]" value="" tabindex="2" placeholder="请输入密码" autocomplete="off">

                                </div>

                            </dd>
                        </dl>
                    </div>
                    <div class="invalid"></div>

                </div>
                
                <div class="submit-btn">
                    <input type="hidden" name="act" value="act_login" />
                    <input type="hidden" name="back_act" value="" />
                    <input type="button" class="btn-submit" id="login_btn1" value="登 录">
                </div>
                <input type="hidden" name="back_url" value="">

            </form>
        </div>

       

    </div>

   
    <!-- 表单验证 -->
    <script src="../common/js/validate/jquery.validate.js"></script>
    <script src="../common/js/validate/jquery.validate.custom.js"></script>
    <script src="../common/js/validate/messages_zh.js"></script>
    <script id="client_rules" type="text/javascript">
        [{
            "id": "loginmodel-username",
            "name": "LoginModel[username]",
            "attribute": "username",
            "rules": {
                "required": true,
                "messages": {
                    "required": "请输入用户名"
                }
            }
        }, {
            "id": "loginmodel-password",
            "name": "LoginModel[password]",
            "attribute": "password",
            "rules": {
                "required": true,
                "messages": {
                    "required": "请输入密码"
                }
            }
        }, {
            "id": "loginmodel-username",
            "name": "LoginModel[username]",
            "attribute": "username",
            "rules": {
                "string": true,
                "messages": {
                    "string": "用户名必须是一条字符串。",
                    "maxlength": "用户名长度必需在100以内"
                },
                "maxlength": 50
            }
        }, {
            "id": "loginmodel-password",
            "name": "LoginModel[password]",
            "attribute": "password",
            "rules": {
                "string": true,
                "messages": {
                    "string": "密码必须是一条字符串。",
                    "maxlength": "密码长度必需在32以内"
                },
                "maxlength": 32
            }
        }, {
            "id": "loginmodel-rememberme",
            "name": "LoginModel[rememberMe]",
            "attribute": "rememberMe",
            "rules": {
                "boolean": {
                    "trueValue": "1",
                    "falseValue": "0"
                },
                "message": {
                    "boolean": "记住用户名密码的值必须要么为\"1\"，要么为\"0\"。"
                }
            }
        }, ]
    </script>
   
    <script type="text/javascript">
			var user = localStorage.getItem("user");	
	if(user != null) {
			setTimeout(function() {
				window.location.href="index.html";
			}, 100);	
	}
        $().ready(function () {
            var container = $("#1493541251RTfJ9Z");
            
        

            var validator = $("#form2").validate();
            // 验证规则，此验证规则会影响编辑器中JavaScript的的格式化操作
           
            $.validator.addRules($("#client_rules").html());
            $(container).find("#login_btn1").click(function () {
                if (!validator.form()) {
                    return false;
                }
      
                loginByPwd();
                return true;
            });
            $("input").watch(function() {
					var flag = true;
					$.each($(this).parents('.submit-btn').find('input'), function() {
						if($(this).val() == '') {
							flag = false;
						}
					});
					if(flag == true) {

					} else {

					}
				});
   
           

        });
    </script>

</html>

</body>

</html>
